/**
 * 活动
 */
const util = require('../utils/util.js');
const capi = require('../config/api.js');

/**
 * 判断用户是否登录
 */
function typeList(id: Number) {
  return new Promise(function (resolve, reject) {
    util.request(
      capi.typeList, 
      {key: '31db5e97674cf813f867ed68b8a233ce',id},
      "GET").then((res:any) => {
      if (res.code === 0) {
        console.log("res", res)
        reject(res);
      } else {
        reject(res);
      }
    });
  });
}


module.exports = {
  typeList,
};